<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Administration/main.master"
    CodeFile="Settings.aspx.cs" Inherits="Tathata.Web.Administration.Administration_Settings" %>

<asp:Content ID="c1" ContentPlaceHolderID="cph1" runat="Server">
    <h4>
        Settings</h4>
    <asp:GridView ID="gvSettings" runat="server" AutoGenerateColumns="False" Width="100%" OnPageIndexChanging="gvSettings_PageIndexChanging" AllowPaging="true" PageSize="15">
        <Columns>
            <asp:BoundField DataField="SettingID" HeaderText="SettingID" Visible="False"></asp:BoundField>
            <asp:TemplateField HeaderText="Name" ItemStyle-Width="40%">
                <ItemTemplate>
                    <a href="SettingDetails.aspx?SettingID=<%#Eval("SettingID")%>">
                        <%#Server.HtmlEncode(Eval("Name").ToString())%>
                    </a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Value" ItemStyle-Width="40%">
                <ItemTemplate>
                    <%#Server.HtmlEncode(Eval("Value").ToString())%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20%"
                ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="SettingDetails.aspx?SettingID=<%#Eval("SettingID")%>">Edit </a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <br>
    <input type="button" onclick="location.href='SettingAdd.aspx'" value="Add new" id="btnAddNew"
        class="adminButton" />
    <br />
</asp:Content>
